import {APP_TITLE} from '../../config/constant'


const TokenKey = APP_TITLE + 'x-auth-token';
const LocKey = APP_TITLE +'x-auth-lock';

export function getToken() {
    return localStorage.getItem(TokenKey) || '';
}

export function setToken(token: string) {
    localStorage.setItem(TokenKey, token);
}

export function removeToken() {
    localStorage.setItem(TokenKey, '');
}


export function getLock() {
  return localStorage.getItem(LocKey) || '';
}

export function setLock(lock: string) {
  localStorage.setItem(LocKey, lock);
}

export function removeLock() {
  localStorage.setItem(LocKey, '');
}
